package com.ngc.mall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ngc.mall.domain.SaleAdDomain;
import com.ngc.mall.dto.SaleAdDTO;
import com.ngc.mall.vo.SaleAdVO;

import java.util.List;
public interface ISaleAdService extends IService<SaleAdDomain> {

    List<SaleAdVO> selectAll();

    Long createSaleAd(SaleAdDTO dto);

    Boolean updateAdStatus(Boolean status,Long id);

    Boolean updateById(SaleAdDTO dto,Long id);

    IPage<SaleAdDomain> getPageList(int current, int size);

    SaleAdVO getAdById(Long id);
}
